<!DOCTYPE html>
<html>

<head>
    <include file="Share:meta" />
    <script src="../Public/plugins/jsFormat/jsFormat.js"></script>
    <script src="../Public/plugins/citySelect/jsAddress.js"></script>
</head>

<body oncontextmenu="self.event.returnValue=false" ondragstart="return false" class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <include file="Share:header" />
        <include file="Share:left" />
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>修改密码<small></small></h1>
                <ol class="breadcrumb">
                    <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                    <li class="active">修改</li>
                </ol>
            </section>
            <!-- Main content -->
            <section class="content">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">修改密码</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form id="form1" class="form-horizontal" action="/Admin/updatePass" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="tid" value="{$info.tid}" />
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
                                <div class="col-sm-10">
                                    <input type="text" name="account" id="inputEventCode" class="form-control" value="{$info.account}" readonly="readonly" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">新密码</label>
                                <div class="col-sm-10">
                                    <input type="password" name="password" id="password" class="form-control" value="" required="required" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">确认密码</label>
                                <div class="col-sm-10">
                                    <input type="password" name="passwordSure" id="passwordSure" class="form-control" value="" autocomplete="off" required="required">
                                </div>
                            </div>
                           
                           
                            
                            
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer col-sm-offset-2">
                            <button type="button" onclick="javascript:doSave();" class="btn btn-primary">
                                保存
                            </button>
                            <a class="btn btn-warning" href="/Store/slist" role="button">返回</a>
                        </div>
                        <br>
                        <!-- /.box-footer -->
                    </form>
                </div>
              
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <include file="Share:copyright" />
        <include file="Share:setting" />
    </div>
    <include file="Share:js" />
    <script type="text/javascript">
        $("#SYS_INFO").addClass("active");
        $("#sys_modifypassword").addClass("active");
        $(function() {
            
        });
        
        function doSave(){
            if ($("#password").val() == '' || $("#password").val() == null){
                alert("请填写密码");
                $("#password").focus();
                return;
            }
            if ($("#passwordSure").val() == '' || $("#passwordSure").val() == null){
                alert("请填写确认密码");
                 $("#passwordSure").focus();
                return;
            }
            if ($("#password").val() != $("#passwordSure").val()){
                alert("两次密码不一致!");
                $("#password").focus();
                return;
            }
            $("#form1")[0].submit();
        }
    </script>
</body>

</html>
